package com.turing.post.organization.util;

import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 发卡商分支机构
 * 
 * @author zxp
 * @date 2012-12-14
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ISSUEBRANCH")
public class IssueBranch implements java.io.Serializable {

	/**
	 * 激活状态 0 – 未激活
	 */
	public static final String ISSUEBRANCH_STATUS_NOTACTIVATED = "0";

	/**
	 * 激活状态 1 – 已激活
	 */
	public static final String ISSUEBRANCH_STATUS_ACTIVATED = "1";
	/**
	 * 发卡商机构号
	 */
	private String issueBranchNo;
	/**
	 * 上级发卡商机构号
	 */
	private String superIssueBranchNo;
	/**
	 * 发卡商机构名称
	 */
	private String issueBranchName;
	/**
	 * 隶属发卡商No
	 */
	private String issueCompanyNo;
	/**
	 * 行政区域
	 */
	private String regionNo;
	/**
	 * 状态
	 */
	private String status;

	/**
	 * 是否允许激活 不允许
	 */
	public static final String ISSUEBRANCH_ALLOWACTIVATE_NO = "0";

	/**
	 * 允许
	 */
	public static final String ISSUEBRANCH_ALLOWACTIVATE_YES = "1";
	/**
	 * 是否允许激活
	 */
	private String allowActivate;
	/**
	 * 激活额度
	 */
	private BigInteger activateBalance;
	/**
	 * 授信额度
	 */
	private BigInteger creditBalance;

	/**
	 * 地址
	 */
	private String address;
	/**
	 * 联系电话
	 */
	private String linkTele;
	/**
	 * 联系人
	 */
	private String linkMan;

	public IssueBranch() {
	}

	@Id
	@Column(name = "ISSUEBRANCHNO")
	public String getIssueBranchNo() {
		return issueBranchNo;
	}

	public void setIssueBranchNo(String issueBranchNo) {
		this.issueBranchNo = issueBranchNo;
	}

	@Column(name = "ISSUEBRANCHNAME")
	public String getIssueBranchName() {
		return issueBranchName;
	}

	public void setIssueBranchName(String issueBranchName) {
		this.issueBranchName = issueBranchName;
	}

	@Column(name = "REGIONNO")
	public String getRegionNo() {
		return regionNo;
	}

	public void setRegionNo(String regionNo) {
		this.regionNo = regionNo;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "ALLOWACTIVATE")
	public String getAllowActivate() {
		return allowActivate;
	}

	public void setAllowActivate(String allowActivate) {
		this.allowActivate = allowActivate;
	}

	@Column(name = "ACTIVATEBALANCE")
	public BigInteger getActivateBalance() {
		return activateBalance;
	}

	public void setActivateBalance(BigInteger activateBalance) {
		this.activateBalance = activateBalance;
	}

	@Column(name = "CREDITBALANCE")
	public BigInteger getCreditBalance() {
		return creditBalance;
	}

	public void setCreditBalance(BigInteger creditBalance) {
		this.creditBalance = creditBalance;
	}

	@Column(name = "ADDRESS")
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "SUPERISSUEBRANCHNO")
	public String getSuperIssueBranchNo() {
		return superIssueBranchNo;
	}

	public void setSuperIssueBranchNo(String superIssueBranchNo) {
		this.superIssueBranchNo = superIssueBranchNo;
	}

	@Column(name = "LINKTELE")
	public String getLinkTele() {
		return linkTele;
	}

	public void setLinkTele(String linkTele) {
		this.linkTele = linkTele;
	}

	@Column(name = "LINKMAN")
	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	@Column(name = "ISSUECOMPANYNO")
	public String getIssueCompanyNo() {
		return issueCompanyNo;
	}

	public void setIssueCompanyNo(String issueCompanyNo) {
		this.issueCompanyNo = issueCompanyNo;
	}

}